<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>provider member</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="/Machine/css/member.css">
		<link rel="stylesheet" type="text/css" href="/Machine/css/hasout.css">

		<script type="text/javascript" src="/Machine/js/jquery-1.7.2.js">

</script>

		<script type="text/javascript">

function changeframe(page) {

		$.ajax( {
			type : "POST",
			url : "/Machine/user/findHasOutBuyComAction.action",
			dataType : "html",
			data : "username="+"${sessionScope.username}" + "&page="+page,
			success : function(msg) {
				// alert("Data Loaded: " + data);
			//alert(msg);
			$("#back_data").html(msg);
			$("#myframe").remove();
			$(".outinfo_du").css("display", "block");
		}
		});

	return false;

}

function changeframe2(page) {

		$.ajax( {
			type : "POST",
			url : "/Machine/user/findBuyComAction.action",
			dataType : "html",
			data : "page="+page,
			success : function(msg) {
			$("#back_data").html(msg);
			$("#myframe").remove();
			$(".outinfo_du").css("display", "none");
		}
		});

	return false;

}
</script>

		<script type="text/javascript">
$(document).ready(
		function() {

			$(".do_submit").bind(
					"click",
					function() {
						if ($(this).val() == "删除操作") {
							$(".outinfoform").attr("action",
									"/Machine/user/deleteBuyComAction.action");
							$(".outinfoform").submit();
						}
						if ($(this).val() == "更新操作") {
							$(".outinfoform").attr("action",
									"/Machine/user/updateBuyComAction.action");
							$(".outinfoform").submit();
						}

					});

		});
</script>

	</head>

	<body>
		<div class="head">
			<div id="top">
				<span class="f_r"> </span>
				<a href="/Machine/index.jsp">网站首页</a>
			</div>
		</div>
		<table width="100%" cellspacing="0" cellpadding="0">
			<tbody>
				<tr>
					<td id="side" class="side" valign="top">
						<div class="side_head" onclick="c(0);">
							<div>
								<img id="I_0" width="16" height="16" align="right" alt=""
									src="/Machine/images/arrow_c.gif">
								信息管理
							</div>
						</div>

						<div id="D_0" class="side_body">
							<ul>
								<li id="mid_6" class="side_a" onmouseout="t(this.id);"
									onmouseover="v(this.id);">
									<span class="f_r"> </span>
									<a class="n" href="/Machine/provider_member.jsp">供应管理</a>
								</li>
								<li id="mid_6" class="side_b" onmouseout="t(this.id);"
									onmouseover="v(this.id);">
									<span class="f_r"> </span>
									<a class="n" href="/Machine/member_buycom.jsp">寻购管理</a>
								</li>


							</ul>
						</div>

						<div class="side_head" onclick="c(2);">
							<div>
								<img id="I_2" width="16" height="16" align="right" alt=""
									src="/Machine/images/arrow_c.gif">
								交易管理
							</div>
						</div>

						<div id="D_2" class="side_body" style="">
							<ul>

								<li id="trade" class="side_a" onmouseout="t(this.id);"
									onmouseover="v(this.id);">
									<span class="f_r"> </span>
									<a class="n" href="/Machine/provider_order.jsp">我的订单</a>
								</li>

								<li id="record" class="side_a" onmouseout="t(this.id);"
									onmouseover="v(this.id);">
									<a class="n" href="/Machine/priceorder.jsp">我的询价单</a>
								</li>



							</ul>
						</div>

						<div class="side_head" onclick="c(4);">
							<div>
								<img id="I_4" width="16" height="16" align="right" alt=""
									src="/Machine/images/arrow_c.gif">
								资料管理
							</div>
						</div>

						<div id="D_4" class="side_body" style="">
							<ul>

								<li id="edit" class="side_a" onmouseout="t(this.id);"
									onmouseover="v(this.id);">
									<span class="f_r"> </span>
									<a class="n" href="">修改资料</a>
								</li>

								<li id="logout" class="side_a" onmouseout="t(this.id);"
									onmouseover="v(this.id);">
									<a class="n" href="">退出登录</a>
								</li>

							</ul>

						</div>



					</td>

					<td id="side_oh" class="side_h" title="点击展开/隐藏侧栏"
						onclick="oh(this);">
						&nbsp;
					</td>

					<td id="main" class="main" valign="top" style="height: 501px;">

						<div class="menu">
							<table cellspacing="0" cellpadding="0">
								<tbody>
									<tr>
										<td id="add" class="tab">
											<a href="/Machine/member_buycom.jsp"> <span>发布寻购信息</span>
											</a>
										</td>
										<td class="tab_nav">
											&nbsp;
										</td>
										<td id="" class="tab">
											<a href="#" onclick="return changeframe(1);"> <span>
													发布的寻购信息 </span> </a>
										</td>
										<td class="tab_nav">
											&nbsp;
										</td>
											<td id="" class="tab">
											<a href="#" onclick="return changeframe2(1);"> <span>
													浏览寻购信息 </span> </a>
										</td>
										<td class="tab_nav">
											&nbsp;
										</td>

									</tr>
								</tbody>
							</table>


						</div>

						<div id="framediv">

							<iframe id="myframe" src="/Machine/buycom_out.jsp" width="100%"
								frameborder="0" height="650px;">

							</iframe>
						</div>

						<div id="back_data">


						</div>



						<div class="outinfo_du">
							<input type='button' class='do_submit' value='删除操作' />
							<input type='button' class='do_submit' value='更新操作' />
						</div>


					</td>

				</tr>
			</tbody>
		</table>

	</body>
</html>
